<div class="panel panel-default panel-intro">
    <div class="panel-heading">
        <ul class="nav nav-tabs">
            <li class="active"><a href="#upload" data-toggle="tab">文件上传</a></li>
            <li><a href="#files" data-toggle="tab">文件列表</a></li>
            <li><a href="#statistics" data-toggle="tab">统计信息</a></li>
        </ul>
    </div>
    
    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <!-- 文件上传 -->
            <div class="tab-pane fade active in" id="upload">
                <div class="row">
                    <div class="col-md-6">
                        <div class="panel panel-default">
                            <div class="panel-heading">
                                <h3 class="panel-title">单文件上传</h3>
                            </div>
                            <div class="panel-body">
                                <form id="upload-form" enctype="multipart/form-data">
                                    <div class="form-group">
                                        <label>选择存储配置：</label>
                                        <select id="config-select" class="form-control" required>
                                            <option value="">请选择存储配置</option>
                                        </select>
                                    </div>
                                    <div class="form-group">
                                        <label>选择文件：</label>
                                        <input type="file" name="file" class="form-control" required>
                                    </div>
                                    <button type="submit" class="btn btn-primary">上传文件</button>
                                </form>
                                <div id="upload-result" class="mt-3"></div>
                            </div>
                        </div>
                    </div>
                    
                    <div class="col-md-6">
                        <div class="panel panel-default">
                            <div class="panel-heading">
                                <h3 class="panel-title">多文件上传</h3>
                            </div>
                            <div class="panel-body">
                                <form id="batch-upload-form" enctype="multipart/form-data">
                                    <div class="form-group">
                                        <label>选择存储配置：</label>
                                        <select id="batch-config-select" class="form-control" required>
                                            <option value="">请选择存储配置</option>
                                        </select>
                                    </div>
                                    <div class="form-group">
                                        <label>选择文件：</label>
                                        <input type="file" name="files[]" class="form-control" multiple required>
                                    </div>
                                    <button type="submit" class="btn btn-success">批量上传</button>
                                </form>
                                <div id="batch-upload-result" class="mt-3"></div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 文件列表 -->
            <div class="tab-pane fade" id="files">
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title">已上传文件</h3>
                    </div>
                    <div class="panel-body">
                        <div id="toolbar" class="toolbar">
                            <button class="btn btn-primary" onclick="refreshFiles()">
                                <i class="fa fa-refresh"></i> 刷新
                            </button>
                        </div>
                        <table id="files-table" class="table table-striped table-bordered table-hover">
                            <thead>
                                <tr>
                                    <th>ID</th>
                                    <th>文件名</th>
                                    <th>大小</th>
                                    <th>类型</th>
                                    <th>上传时间</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody></tbody>
                        </table>
                    </div>
                </div>
            </div>
            
            <!-- 统计信息 -->
            <div class="tab-pane fade" id="statistics">
                <div class="row">
                    <div class="col-md-4">
                        <div class="panel panel-info">
                            <div class="panel-heading">
                                <h3 class="panel-title">文件总数</h3>
                            </div>
                            <div class="panel-body">
                                <h2 id="total-files">0</h2>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-4">
                        <div class="panel panel-success">
                            <div class="panel-heading">
                                <h3 class="panel-title">总大小</h3>
                            </div>
                            <div class="panel-body">
                                <h2 id="total-size">0 B</h2>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-4">
                        <div class="panel panel-warning">
                            <div class="panel-heading">
                                <h3 class="panel-title">今日上传</h3>
                            </div>
                            <div class="panel-body">
                                <h2 id="today-uploads">0</h2>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
